<?php defined('SYSPATH') or die('No direct script access.');

class Helper_Widjets {
 
	static public function photosPreview($images){
		$v = View::factory('landing1/gallery.previews');
		$v->images = $images;		
		return $v->render();	
	}
	
	static public function galleryTpl($errors=false){
		$v = View::factory('landing1/gallery.start');		
		$v->errors = $errors;
		return $v->render();
	}
	
	static public function galleryLanding($errors=false){
		$view = View::factory('landing1/gallery');		
		$view->content  = Helper_Widjets::galleryTpl($errors);		
		return $view->render();
	}
	
	




}